package com.atguigu.boot.bean;

import lombok.Data;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Data
@ToString
@Component
public class Dog {

    @Value(value = "${dogName:小黄狗}")
    private String dogName;
    private String dogNickName;
    private int dogAge;
}
